package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.mall.product.entity.AttrGroupEntity;
import com.mall.product.vo.AttrGroupWithAttrVo;
import com.mall.product.vo.SpuItemGroupAttrVo;
import com.mall.product.vo.SpuItemVo;

import java.util.List;
import java.util.Map;

/**
 * ���Է���
 *
 * @author yjv
 * @email 111111@163.com
 * @date 2024-08-04 00:42:44
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据关键字进行查询
     * @param params
     * @param cateLogId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long cateLogId);

    /**
     * 防止重复添加
     * @param attrGroup
     */
    void saveNotRepeat(AttrGroupEntity attrGroup);


    List<AttrGroupWithAttrVo> getAttrgroupWithAttrsByCatelogId(Long catelogfId);

    List<SpuItemGroupAttrVo> getAttrgroupWithSpuId(Long spuId, Long catalogId);

}

